home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Softshoe / Lisa's Mac Parts / Miscellany / Patch.h < prev    next >
Text File  |  2000-06-23  |  609b  |  38 lines

  1. // Patch.h
  2.  
  3. #ifndef Patch_h
  4. #define Patch_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. #include <MacTypes.h>
  11. #include <OSUtils.h>
  12.  
  13. class PatchBase
  14.   {
  15.     private:
  16.         UniversalProcPtr old;
  17.         int32 procInfo;
  18.         int16 trapNumber;
  19.         TrapType type;
  20.     
  21.         // not implemented:
  22.             PatchBase( const PatchBase& );
  23.             void operator=( const PatchBase& );
  24.         
  25.     public:
  26.         PatchBase( TrapType type,
  27.                       int16 trapNumber,
  28.                       int32 procInfo,
  29.                       const RoutineDescriptor *patch );
  30.         
  31.         ~PatchBase();
  32.         
  33.         int32 ProcInfo() const                { return procInfo; }          
  34.         UniversalProcPtr Old() const        { return old; }
  35.   };
  36.  
  37. #endif
  38.